package Test;

public class Player {
    public void play(int index) throws NoThisSoundException{
        if(index > 10){
            throw new NoThisSoundException("您播放的歌曲不存在");
        }else{
            System.out.println("您播放的歌曲存在");
        }
    }
}
